package com.joymart.product.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.json.JSONObject;
import org.springframework.data.annotation.Id;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Product {
    @Id
    private String id;
    // 品名
    private String name;
    private BigDecimal price;
    private BigDecimal pv;
    @JsonSerialize
    private JSONObject meta;
    // 产品详情
    private String description;
    // 用户反馈，由官方维护
    private String feedback;
    //是否在售
    private boolean onMarket;
    private LocalDateTime createdAt;
    private boolean deleted;
}
